import types

class Operator:
    def getArity(self):
        return 0
    def do(self):
        pass
        
class Add(Operator):
    def getArity(self):
        return 2

        

        
        
x = Add()


print isinstance(x, Operator)

print x.getArity()

